
<template>
  <div>
    <van-tabbar
      v-model="active"
      route
      active-color="#ee0a24"
      inactive-color="#000"
    >
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="label-o" to="/topic">专题</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="/classification">分类</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/gcar" @click="tiao()"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item icon="user-o" to="/person">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { Toast } from 'vant';
export default {
  name: "H559Apptabbar",

  components: {},

  directives: {},

  data() {
    return {
      active: 0,
    };
  },

  mounted() {},

  methods: {
    tiao() {
      if (!localStorage.getItem("tok")) {
        Toast.loading({
          message: "请先登录",
          duration: 1000,
          forbidClick: true,
        });
      }
    },
  },
};
</script>

<style lang="less" scoped>
</style>